<div class="main" style="clear:both">
<!-- Container-->
<?php $this->load->view('layouts/sidebar');?>
    <div class="products"><div class="cat-title">       <h1 class="title"><?php echo $this->lang->line('cart_title') ?></h1>
       </div>

       <table width="100%">
            <tbody>
                <tr>
                    <td width="70%" style="padding: 5px 0px;font-weight: bold;"><b><?php echo $this->lang->line('productname') ?></b></td>
                    <td width="10%" style="padding: 5px 0px;font-weight: bold;"><b><?php echo $this->lang->line('price') ?></b></td>
                    <td width="10%" style="padding: 5px 0px;font-weight: bold;"><b><?php echo $this->lang->line('qty') ?></b></td>
                    <td width="10%" style="padding: 5px 0px;font-weight: bold;"><b><?php echo $this->lang->line('subtotal') ?></b></td>
                </tr>
                <?php
                    if(!empty($items)){
                    foreach($items as $item){
                ?>
                <tr>
                    <td width="70%" style="padding: 10px 0;">
                    <p><b><?php echo anchor($item['options']['link'],$item['name'],'title="'.$item['name'].'"')?></b></p>
                    <p><?php echo anchor($item['options']['link'],'<img alt="'.$item['name'].'" src="'.$this->config->item('cdn_url').'exec/timthumb.php?src='.base_url()._get_image_product($item['id'],$item['options']['Color']).'&w=150'.'"','title="'.$item['name'].'"')?></p>
                    <p>Size : <?php echo $item['options']['Size'] ?> - Màu sắc : <?php echo $item['options']['Color'] ?></p>
                    
                    </td>
                    <td width="10%"><?php echo $item['price'] ?></td>
                    <td width="10%" style="position: relative;"><?php echo $item['qty'] ?><span class="add">+</span><span class="sub">-</span></td>
                    <td width="10%"><?php echo $item['subtotal'] ?></td>
                </tr>
                <?php
                    }
                    }else
                    echo '<tr><td colspan=4 align=center><h2>Chưa có sản phẩm nào trong giỏ hang</h2></td></tr>';
                ?>
                <tr><td style="padding: 10px 0px;" colspan="4"><b><?php echo $this->lang->line('total') ?></b>:<?php echo $this->cart->total(); ?></td></tr>
                <tr>
                    <td colspan="2" width="50%">
                        <div class="button" style="position: static;width: 135px;"><span><?php echo anchor(base_url(),'Tiếp tục mua hàng','title="Tiếp tục mua hàng"');?></span></div>
                    </td>
                    <td colspan="2"  width="50%" align="right"><div class="button" style="position: static;width: 90px;"><span><?php echo anchor('shop/checkout/customer-info','Thanh toán');
                    unset($items);
                    ?></span></div></td>
                </tr>
            </tbody>
       </table>
    
</div></div>
<div class="clear"></div>
<!--End Contaier--> 
